home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / util / gnu / cvs-1.11.1p1.lha / contrib / Makefile.am < prev    next >
Encoding:
Makefile  |  2001-01-06  |  3.1 KB  |  109 lines

  1. ## Process this file with automake to produce Makefile.in
  2. # Makefile for GNU CVS contributed sources.
  3. # Do not use this makefile directly, but only from `../Makefile'.
  4. # Copyright (C) 1986, 1988-1990 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # DISTFILES = \
  17. #     ChangeLog README .cvsignore intro.doc \
  18. #     Makefile.in clmerge.pl cln_hist.pl commit_prep.pl cvs2vendor.sh \
  19. #     cvs_acls.pl cvscheck.sh cvscheck.man cvshelp.man debug_check_log.sh \
  20. #     descend.sh \
  21. #     descend.man dirfns.shar log.pl log_accum.pl mfpipe.pl rcs-to-cvs.sh \
  22. #     rcs2log.sh rcslock.pl sccs2rcs.csh rcs2sccs.sh
  23.  
  24. # files installed in $(pkgdatadir)
  25. #
  26. # CONTRIB_FILES = README intro.doc cvscheck.man
  27.  
  28. contribdir = $(pkgdatadir)/contrib
  29.  
  30. contrib_SCRIPTS = \
  31.     clmerge \
  32.     cln_hist \
  33.     commit_prep \
  34.     cvs2vendor \
  35.     cvs_acls \
  36.     cvscheck \
  37.     debug_check_log \
  38.     log \
  39.     log_accum \
  40.     mfpipe \
  41.     rcs-to-cvs \
  42.     rcs2log \
  43.     rcslock \
  44.     sccs2rcs
  45.  
  46. contrib_DATA = \
  47.     README \
  48.     intro.doc
  49.  
  50. contrib_MANS = \
  51.     cvscheck.man
  52.  
  53. bin_LINKS = \
  54.     rcs2log
  55.  
  56. EXTRA_DIST = \
  57.     .cvsignore \
  58.     $(contrib_DATA) \
  59.     $(contrib_MANS) \
  60.     cvs2vendor.sh \
  61.     cvscheck.sh \
  62.     cvshelp.man \
  63.     debug_check_log.sh \
  64.     descend.sh \
  65.     descend.man \
  66.     dirfns.shar \
  67.     rcs-to-cvs.sh \
  68.     rcs2log.sh \
  69.     rcs2sccs.sh
  70.  
  71. CLEANFILES = $(bin_SCRIPTS) $(contrib_SCRIPTS)
  72.  
  73. # we'd rather have a link here rather than two copies of a script
  74. install-data-local:
  75.     # FIXME - this path should be determined dynamically from bindir
  76.     # & contribdir
  77.     @$(NORMAL_INSTALL)
  78.     $(mkinstalldirs) $(DESTDIR)$(bindir)
  79.     @list='$(bin_LINKS)'; for p in $$list; do \
  80.         echo "test ! -e $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
  81.         echo "  && cd $(DESTDIR)$(bindir) && $(LN_S) ../share/$(PACKAGE)/contrib/`echo $$p|sed '$(transform)'` ."; \
  82.         (test ! -e $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'` \
  83.             && cd $(DESTDIR)$(bindir) && $(LN_S) ../share/$(PACKAGE)/contrib/`echo $$p|sed '$(transform)'` .) \
  84.           || (echo "Link creation failed" && if test -f $$p; then \
  85.                echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
  86.                $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
  87.              else if test -f $(srcdir)/$$p; then \
  88.                echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
  89.                $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
  90.              else :; fi; fi); \
  91.     done
  92.  
  93. uninstall-local:
  94.     @$(NORMAL_UNINSTALL)
  95.     list='$(bin_LINKS)'; for p in $$list; do \
  96.       rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
  97.     done
  98.  
  99. SUFFIXES = .sh
  100.  
  101. .sh:
  102.     rm -f $@
  103.     cp $< $@
  104.     chmod +x $@
  105.  
  106. # for backwards compatibility with the old makefiles
  107. realclean: maintainer-clean
  108. .PHONY: realclean
  109.